import 'package:equatable/equatable.dart';
import 'package:learning_content_admin_pannel.core/core/domain/entities/page_models/app_navigator_page_model.dart';
import 'package:learning_content_admin_pannel.core/core/domain/utils/uuid_generator.dart';

class SplashScreenModel extends Equatable implements AppNavigatorPageModel {
  SplashScreenModel({
    String? id,
  }) : id = id ?? UuidGenerator().generateUuid();

  @override
  final String id;

  @override
  bool get permittedWithAuthorization => true;

  @override
  bool get permittedWithoutAuthorization => true;

  @override
  List<Object?> get props {
    return [
      id,
    ];
  }

  @override
  SplashScreenModel copyWith({
    String Function()? id,
  }) {
    return SplashScreenModel(
      id: id == null ? this.id : id(),
    );
  }
}
